package com.seckill.exception;

import com.seckill.enums.ResultEnum;
import com.seckill.result.Result;

public class SeckillException extends RuntimeException{
    private Result result;
    public SeckillException(Result result){
        super(result.toString());
        this.result = result;
    }

    public Result getResult(){
        return  result;
    }
}
